package com.itany.pojo;


import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 供应商提供的书籍
 */
public class BookSupplier implements Serializable {
    private Integer id;
    private Integer bookid;
    private Book book;
    private Integer supplierid;
    //销售数量
    private Integer sellnum;
    //库存总量
    private Integer number;
    //指定供货商的指定图书的销售金额
    private BigDecimal totalMoney;

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public Integer getSupplierid() {
        return supplierid;
    }

    public void setSupplierid(Integer supplierid) {
        this.supplierid = supplierid;
    }

    public Integer getSellnum() {
        return sellnum;
    }

    public void setSellnum(Integer sellnum) {
        this.sellnum = sellnum;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }


    @Override
    public String toString() {
        return "BookSupplier{" +
                "id=" + id +
                ", bookid=" + bookid +
                ", supplierid=" + supplierid +
                ", sellnum=" + sellnum +
                ", number=" + number +
                '}';
    }
}
